package com.example.filter;

import com.netflix.zuul.FilterProcessor;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import com.netflix.zuul.exception.ZuulException;

public class BbzFilterProcessor extends FilterProcessor{
	@Override
	public Object processZuulFilter(ZuulFilter filter) throws ZuulException{
		try {
			return super.processZuulFilter(filter);
		} catch (Exception e) {
			RequestContext context=RequestContext.getCurrentContext();
			context.set("failed.filter",filter);
			throw e;
		}
	}

}
